package fhp.hlhj.giantfold.customView

import android.content.Context
import android.view.LayoutInflater
import android.widget.PopupWindow
import android.widget.RelativeLayout
import fhp.hlhj.giantfold.R
import kotlinx.android.synthetic.main.pop_layout.view.*

/**
 * author: FHP
 * data: on 2018\1\23 0023 15:17
 * E-Mail: 103945089@qq.com
 */
class CustomPop(private val context: Context) :PopupWindow(){
    init{
        setPop()
    }

    private fun setPop() {
        this.contentView=LayoutInflater.from(context).inflate(R.layout.pop_layout,null)
        contentView.img.setOnClickListener {
            this.dismiss()
        }
        width=RelativeLayout.LayoutParams.MATCH_PARENT
        height=RelativeLayout.LayoutParams.WRAP_CONTENT
        this.animationStyle=R.style.page_pop_anim

    }
}